﻿using System;
using System.Windows.Forms;

namespace SSISComponents
{
    public partial class frmCustomError : Form
    {

        string ErrorText = null;

        /// <summary>
        /// Gets or sets the P error text.
        /// </summary>
        /// <value>The P error text.</value>
        public string PErrorText
        {
            get
            {
                return ErrorText;
            }
            set
            {
                ErrorText = value;
            }
        }

        public frmCustomError()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("http://bit.ly/gBOjKp");
        }

        private void frmCustomError_Load(object sender, EventArgs e)
        {
            txtException.Text = ErrorText;
        }
    }
}
